import React from "react";
import {Tooltip} from "antd";


let dictColnumns = [
    {
        title: 'No.',
        dataIndex: '',
        align: 'center',
        key: '0',
        render:(text,record,index)=>`${index+1}`
    },
    {
        title: '类型',
        dataIndex: 'type',
        width: '10%',
        align: 'center',
        key: '1',
    },
    {
        title: '类型名称',
        dataIndex: 'typeName',
        width: '20%',
        align: 'center',
        key: '2',
        onCell: () => {
            return {
                style: {
                    maxWidth: 150,
                    overflow: 'hidden',
                    whiteSpace: 'nowrap',
                    textOverflow: 'ellipsis',
                    cursor: 'pointer'
                }
            }
        },
        render: (text) => <Tooltip placement="topLeft" title={text}>{text}</Tooltip>
    },
    {
        title: '键值',
        dataIndex: 'dicKey',
        align: 'center',
        key: '3',
    },
    {
        title: '内容',
        dataIndex: 'sysMdfByName',
        align: 'center',
        key: '5',
    },
    {
        title: '创建者',
        dataIndex: 'sysCrtByName',
        align: 'center',
        key: '6',
    },
    {
        title: '更新者',
        dataIndex: 'sysMdfByName',
        align: 'center',
        key: '7',
    }
];

export default dictColnumns